﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace SydEnergiDataService
{
    [Serializable]
    [DataContract]
    public class AddressDto
    {
        public int Id { get; set; }
        [DataMember]
        public string StreetName { get; set; }
        [DataMember]
        public int StreetNumber { get; set; }
        [DataMember]
        public int ZipCode { get; set; }
        [DataMember]
        public string City { get; set; }
        [DataMember]
        public string Letter { get; set; }
        [DataMember]
        public string Floor { get; set; }
        [DataMember]
        public string StairCasePosition { get; set; }

        public CabinetDto CabinetDto { get; set; }
        public EntryDto EntryDto { get; set; }

        public AddressDto()
        {
            Letter = "";
            Floor = "";
            StairCasePosition = "";
        }

        public AddressDto(string streetname, int streetnumber, int zipcode, string city)
        {
            StreetName = streetname;
            StreetNumber = streetnumber;
            ZipCode = zipcode;
            City = city;
            Letter = "";
            Floor = "";
            StairCasePosition = "";
        }
    }
}
